Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/pkg/emlearn: add model.h to repo #20841

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Conversation

maribu
Copy link
Member

@maribu maribu commented Aug 28, 2024

Contribution description

This adds the previously on-demand generated model.h to the repo. The Makefile rule to regenerate model.h has been left in place, but just adding the header to the test allows to build the application without heaving emlearn installed, which is convenient for the CI.

Actual users of emlearn will likely still want to generate the header.

Testing procedure

make -C tests/pkg/emlearn should now work despite emlearn not installed.

Issues/PRs references

This should fix the issue from #20840

Copy link
Contributor

@mguetschow mguetschow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me to have model.h checked in and updated in lockstep with the binary model for new versions of emlearn as this relieves the CI from having to contain emlearn.

CI complains about trailing whitespaces and non-C++ compatible header. Either we would have to add some sed magic to resolve those on model.h (likely should be part of the Make target) or we exclude that specific header from the static checks, if that is somehow possible.

@mguetschow mguetschow added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 29, 2024
@riot-ci
Copy link

riot-ci commented Aug 29, 2024

Murdock results

✔️ PASSED

2c89b7a tests/pkg/emlearn: add model.h to repo

Success Failures Total Runtime
21 0 22 01m:30s

Artifacts

@mguetschow mguetschow added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Sep 16, 2024
@mguetschow
Copy link
Contributor

After rebasing to master, this should be ready to be merged @maribu.

The Makefile rule to regenerate model.h has been left in place, but
just adding the header to the test allows to build the application
without heaving emlearn installed, which is convenient for the CI.

Actual users of emlearn will like still want to generate the header.
@maribu
Copy link
Member Author

maribu commented Sep 28, 2024

After rebasing to master, this should be ready to be merged @maribu.

Thanks for the reminder. Done :)

@maribu maribu added this pull request to the merge queue Sep 29, 2024
Merged via the queue into RIOT-OS:master with commit 3c5c78a Sep 29, 2024
25 checks passed
@maribu maribu deleted the tests/pkg/emlearn branch October 10, 2024 08:25
@benpicco benpicco added this to the Release 2024.10 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants